<template>
  <div>
    <MainBox>
      <template #headerForm>
        <el-form :inline="true" class="demo-form-inline">
          <el-form-item label="设备编号">
            <el-input placeholder="请输入" />
          </el-form-item>
          <el-form-item>
            <el-button type="primary" icon="el-icon-search">查询</el-button>
          </el-form-item>
        </el-form>
      </template>
      <template #table>
        <el-button
          type="danger"
          icon="iconfont icon-zengjiatianjiajiahao"
        >新建</el-button>
        <el-button type="warning" plain>工单配置</el-button>
        <el-table :data="list" style="width: 100% ">
          <el-table-column type="index" label="序号" width="80" />
          <el-table-column prop="name" label="点位名称" />
          <el-table-column prop="region.name" label="所在区域" />
          <el-table-column prop="businessType.name" label="商圈类型" />
          <el-table-column prop="ownerName" label="合作商" />
          <el-table-column prop="addr" label="详细地址" />
          <el-table-column label="操作">
            <template #default>
              <el-button type="text">查看详情</el-button>
              <el-button type="text">修改</el-button>
              <el-button type="text">删除</el-button>
            </template>
          </el-table-column>
        </el-table>
        <div class="fotter">
          <div class="left">
            <!-- {{ totalNum }}  this.totalNum = `共${data.totalCount}条记录  第${data.pageIndex}/${data.totalPage}页` -->
          </div>
          <div class="block">
            <el-pagination
              prev-text="上一页"
              next-text="下一页"
              :background="true"
              layout="prev, next"
              @current-change="handleCurrentChange"
              @prev-click="formInline.index --"
              @next-click="formInline.index ++"
            />
          </div>
        </div>
      </template>
    </MainBox>
    <el-dialog
      title="title"
      visible.sync="dialogVisible"
      width="30%"
    >
      132321
      <span slot="footer" class="dialog-footer">
        <el-button @click="handleClose">取 消</el-button>
        <el-button type="primary" @click="addFn">确 定</el-button>
      </span>
    </el-dialog>
    <el-dialog
      title="点位详情"
      width="30%"
    >
      6666666
    </el-dialog>
  </div>
</template>

<script>
export default {
  data() {
    return {

      formData: {

      },
      formRules: {
      }
    }
  }

}

</script>

<style lang="scss" scoped>
.el-button.del {
  color: red;
}
.el-descriptions-item__container{
.labelClassName {
  flex: 1;
  color: #909;
  background-color: #303;
}
}
.el-select,.el-cascader {
  width: 100%;
}

</style>
